(global.webpackJsonp = global.webpackJsonp || []).push([ [ "uview-ui/components/u-sticky/u-sticky" ], {
    1085: function(t, e, n) {},
    4915: function(t, e, n) {
        var i = n("1085");
        n.n(i).a;
    },
    bf3d: function(t, e, n) {
        n.r(e);
        var i, o = n("f340"), s = n.n(o);
        for (i in o) "default" !== i && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(i);
        e.default = s.a;
    },
    f340: function(t, n, e) {
        (function(t) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var e = {
                name: "u-sticky",
                props: {
                    offsetTop: {
                        type: [ Number, String ],
                        default: 0
                    },
                    index: {
                        type: [ Number, String ],
                        default: ""
                    },
                    enable: {
                        type: Boolean,
                        default: !0
                    },
                    h5NavHeight: {
                        type: [ Number, String ],
                        default: 44
                    },
                    bgColor: {
                        type: String,
                        default: "#ffffff"
                    },
                    zIndex: {
                        type: [ Number, String ],
                        default: ""
                    }
                },
                data: function() {
                    return {
                        fixed: !1,
                        height: "auto",
                        stickyTop: 0,
                        elClass: this.$u.guid(),
                        left: 0,
                        width: "auto"
                    };
                },
                watch: {
                    offsetTop: function(t) {
                        this.initObserver();
                    },
                    enable: function(t) {
                        0 == t ? (this.fixed = !1, this.disconnectObserver("contentObserver")) : this.initObserver();
                    }
                },
                computed: {
                    uZIndex: function() {
                        return this.zIndex || this.$u.zIndex.sticky;
                    }
                },
                mounted: function() {
                    this.initObserver();
                },
                methods: {
                    initObserver: function() {
                        var e = this;
                        this.enable && (this.stickyTop = 0 != this.offsetTop ? t.upx2px(this.offsetTop) : 0, 
                        this.disconnectObserver("contentObserver"), this.$uGetRect("." + this.elClass).then(function(t) {
                            e.height = t.height, e.left = t.left, e.width = t.width, e.$nextTick(function() {
                                e.observeContent();
                            });
                        }));
                    },
                    observeContent: function() {
                        var e = this;
                        this.disconnectObserver("contentObserver");
                        var t = this.createIntersectionObserver({
                            thresholds: [ .95, .98, 1 ]
                        });
                        t.relativeToViewport({
                            top: -this.stickyTop
                        }), t.observe("." + this.elClass, function(t) {
                            e.enable && e.setFixed(t.boundingClientRect.top);
                        }), this.contentObserver = t;
                    },
                    setFixed: function(t) {
                        t = t < this.stickyTop;
                        t ? this.$emit("fixed", this.index) : this.fixed && this.$emit("unfixed", this.index), 
                        this.fixed = t;
                    },
                    disconnectObserver: function(t) {
                        t = this[t];
                        t && t.disconnect();
                    }
                },
                beforeDestroy: function() {
                    this.disconnectObserver("contentObserver");
                }
            };
            n.default = e;
        }).call(this, e("543d").default);
    },
    fa79: function(t, e, n) {
        n.d(e, "b", function() {
            return i;
        }), n.d(e, "c", function() {
            return o;
        }), n.d(e, "a", function() {});
        var i = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    fefb: function(t, e, n) {
        n.r(e);
        var i, o = n("fa79"), s = n("bf3d");
        for (i in s) "default" !== i && function(t) {
            n.d(e, t, function() {
                return s[t];
            });
        }(i);
        n("4915");
        var c = n("f0c5"), o = Object(c.a)(s.default, o.b, o.c, !1, null, "17daedf7", null, !1, o.a, void 0);
        e.default = o.exports;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "uview-ui/components/u-sticky/u-sticky-create-component", {
    "uview-ui/components/u-sticky/u-sticky-create-component": function(t, e, n) {
        n("543d").createComponent(n("fefb"));
    }
}, [ [ "uview-ui/components/u-sticky/u-sticky-create-component" ] ] ]);